<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="/fuman/js/product.js"></script>
<title>商品状态列表</title>
<body class="withvernav">
<div class="bodywrapper">
	{{include file='/public/leftmenu.tpl'}}
	<div class="centercontent">
		<div class="pageheader notab">
			<h1 class="pagetitle">商品状态列表</h1>
			<span class="pagedesc"></span>
			<div class="menulist">
				<ul class="profile_summary">
				</ul>
			</div>
		</div>
		<!--pageheader-->

		<div id="contentwrapper" class="contentwrapper">
			<div id="basicform" class="subcontent">

				<div>
					<div style="float:left">
					</div>
					<!--搜索栏-->
					<div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
				</div>
				<form class="stdform stdform2" method="get" id="search" action="/externalBuy/ajaxbutton">

					<div class="tableoptions">
						关键词: <input type="text" name="sku" id="sku" class="width300" value="{{$other}}" placeholder="商品编号、原因"/>
						&nbsp;
						
						<input type="hidden" name="op" value="productStatusList">
						<button class="btn btn_orange btn_search radius50">Search</button>
					</div>

				</form>
				<!--搜索栏结束-->
				<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
					<thead>
					<tr class="lbbt">
						<td width="2%" bgcolor="#FEFFF1"><a onClick="allSelect('ppid[]')">全选</a></td>
						<td width="5%" bgcolor="#FEFFF1">商品编号</td>
						<td width="12%" bgcolor="#FEFFF1">商品名称</td>
						<td width="5%" bgcolor="#FEFFF1">原因</td>
						<td width="5%" bgcolor="#FEFFF1">备注</td>
						<td width="3%" bgcolor="#FEFFF1">操作者</td>
						<td width="5%" bgcolor="#FEFFF1">操作时间</td>
					</tr>
					</thead>

					{{foreach from=$goodslist item=li key=key}}
					<tbody>
					<!-- 超级管理员 创建人  已完成   -->
					<tr>
						<td><input name="ppid[]" type="checkbox" class="none" id="ppid[]" value="{{$li.p_parent_id}}" /></td>
						<td valign="middle">{{$li.p_parent_sku}}</td>
						<td class="cz">{{$li.p_parent_name}}</td>
						<td class="cz">{{$li.reason}}</td>
						<td class="cz">{{$li.descr}}</td>
						<td class="cz">
							{{$li.createUser}}
						</td>
						<td class="cz">
							{{$li.addTime}}
						</td>
					</tr>
					{{/foreach}}
				</table>
				<div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
			</div>
		</div>
		<!-- 是否确认上架弹出框-->
		<!-- 模态框（Modal）交运内容 -->
		<form action="/externalBuy/doRecommendGoods" enctype="multipart/form-data" method="post" name="dorecommendattributeform" id="dorecommendattributeform" target="_blank" style="font-size: 14px;font-family: Helvetica, 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', Arial, sans-serif;line-height: 21px;color: #666;">
			<div class="modal" id="dorecommendform" tabindex="-1" role="dialog" aria-labelledby="sexpressform" aria-hidden="true" style="margin-top: 60px;padding-top:60px;">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
							        aria-hidden="true" onClick="javascript:$('#dorecommendform').hide();">× </button>
							<h4 class="modal-title"><span id="addsure" style="font-size:18px;">请求下架</span></h4>
						</div>
						<div class="modal-body">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td align="left" width="20%"><span id="showname">下架原因</td>
									<td align="left" width="80%">
                                <span id="settext">
	                                <input type='radio' name='reason'  value='1'> 季节性产品<br/>
					                <input type='radio' name='reason'  value='2'> 销量低<br/>
	                                <input type='radio' name='reason'  value='3'> 商品涉及侵权<br/>
					                <input type='radio' name='reason'  value='4' > 其他原因&nbsp;&nbsp;
					                <input type='text'  name='address' id='address' placeholder='请输入取消原因'/>
                                </span>
									</td>
								</tr>
							</table>
							<div class="modal-footer">
								<button type="button" class="btn btn-default"
								        data-dismiss="modal" style="display:none"> 关闭 </button>
								<button type="button" class="btn btn-primary"  onclick="doRecommend(3)">保存</button>
							</div>
						</div>
						<!-- /.modal-content -->
					</div>
					<!-- /.modal-dialog -->
				</div>
			</div>
		</form>
		<!-- /.modal -->

		<div id="goToTop" style="display:none"><a href="javascript:;">TOP</a></div>

</body>
</html>